<style type="text/css">
div {
	font-size: 14px;
}
a {
	font-size: 13px;
	display: block;
	width: 20px; 
	height: 20px;
	margin-left: 2px;
	float: left;
	padding: 2px;
	color: #000000;
	border: 1px solid #CCCCCC;
	text-decoration: none;
	text-align: center;
}
</style>
<?php foreach ($this->commentList as $v):?>
<div style="width: 500px; border: 1px solid #CCCCCC; margin: 10px; padding: 10px; word-break: break-all; ">
	<div style="width: 100%; height: 25px; background: #CCCCCC; padding-left: 3px;">
	<div style="float: left;"><?php $user = $this->buyer->getUserDetails(array('uid'=>$v->uid));?>
	<?php echo $user[0]['nick_name'];?> Comment at <?php echo date('Y-m-d H:i:s', $v->addtime);?></div>
	<div style="float: right; padding-top: 2px; height: 25px; width: 180px; ">
		<span style="float: left; width: 50px;display: inline; overflow: hidden;margin-left: 2px;"><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="<?php echo MY_URL . '/match-commentdetail?commentid=' . $v->matchcomments_id;?>" send="false" layout="button_count" width="100" show_faces="true" font="" title="<?php echo $v->content;?>"></fb:like></span>
		<span style="float: left; width: 50px;display: inline;"><a href="http://twitter.com/share?via=fancycheapjersey&amp;url=<?=MY_URL?>/match-commentdetail-commentid-<?php echo $v->matchcomments_id?>&amp;text=<?php echo mb_substr($v->content, 0, 140);?>" class="twitter-share-button">Tweet</a></span>
	</div>
	</div>
	<div style="width: 100%; "><?php echo $v->content;?></div>
</div>
<?php endforeach;?>
<div style="width: 500px; padding: 10px; margin-top: 10px;">
	<?php echo $this->pageString;?>
</div>
<div style="width: 500px; padding: 10px;">
	<form action="/match-comment" method="post">
		<textarea name="content" style="widt: 300px; height: 90px;" cols="59" rows="6"></textarea>
		<input type="hidden" name="matchid" value="<?php echo $this->matchID;?>"></input><br/>
		<input type="submit" value="submit"></input>
	</form>
</div>
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>